package com.esd.crm.entity;

import java.math.BigDecimal;
import java.util.Date;

public class Customer {
	private Integer id;

	private String type;

	private String name;

	private String card;

	private String idcard;

	private String telephone;

	private String company="";

	private Date createtime;

	private Integer createuser;

	private Date updatetime;

	private Integer updateuser;

	private String remark;

	private Integer orderNum;

	private String paymentstatus;
	private BigDecimal total = new BigDecimal(0.00).setScale(2, BigDecimal.ROUND_HALF_UP);
	private BigDecimal paid = new BigDecimal(0.00).setScale(2, BigDecimal.ROUND_HALF_UP);
	private BigDecimal payable = new BigDecimal(0.00).setScale(2, BigDecimal.ROUND_HALF_UP);

	
	
	
	public String getPaymentstatus() {
		return paymentstatus;
	}

	public void setPaymentstatus(String paymentstatus) {
		this.paymentstatus = paymentstatus;
	}

	public String getTotal() {
		return total.setScale(2, BigDecimal.ROUND_HALF_UP).toString();
	}

	public void setTotal(BigDecimal total) {
		this.total = total;
	}

	public String getPaid() {
		return paid.setScale(2, BigDecimal.ROUND_HALF_UP).toString();
	}

	public void setPaid(BigDecimal paid) {
		this.paid = paid;
	}

	public String getPayable() {
		return payable.setScale(2, BigDecimal.ROUND_HALF_UP).toString();
	}

	public void setPayable(BigDecimal payable) {
		this.payable = payable;
	}

	public Integer getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name == null ? null : name.trim();
	}

	public String getCard() {
		return card;
	}

	public void setCard(String card) {
		this.card = card == null ? null : card.trim();
	}

	public String getIdcard() {
		return idcard;
	}

	public void setIdcard(String idcard) {
		this.idcard = idcard == null ? null : idcard.trim();
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone == null ? null : telephone.trim();
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Integer getCreateuser() {
		return createuser;
	}

	public void setCreateuser(Integer createuser) {
		this.createuser = createuser;
	}

	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	public Integer getUpdateuser() {
		return updateuser;
	}

	public void setUpdateuser(Integer updateuser) {
		this.updateuser = updateuser;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark == null ? null : remark.trim();
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

}